package com.bjtu.douyin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bjtu.common.pojo.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    default boolean existsById(Integer userId) {
        User user = this.selectById(userId);
        return user != null;
    }
}

